﻿ 
@{
    ViewBag.Title = "JiaoBan";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@FastReport.Web.WebReportGlobals.ScriptsWOjQuery()
@FastReport.Web.WebReportGlobals.StylesWOjQuery()

<input type="hidden" id="StartDate" value='@ViewData["Start"]' />
<input type="hidden" id="EndDate" value='@ViewData["End"]' />
<input type="hidden" id="Money" value='@ViewData["Money"]' />

<input type="button" class="btn btn-default" value="交班" />

<div id="tableDetail" style="text-align:center;">
    @Html.Raw(ViewData["Report"])
</div>

<script type="text/javascript">
        $(document).ready(function () { 
            $(":button").click(function () {
                $.post("/Jxc/JiaoBanPost", {
                    startDate: $("#StartDate").val(),
                    endDate: $("#EndDate").val(),
                    money: $("#Money").val() 
                },
                    function (data, status) {
                        if (status == "success") {
                            alert(data);
                            window.location.replace("/Jxc/Pos");
                        }
                        else {
                            alert("远程服务器连接失败");
                        }
                    });
        });
        });
</script> 